function ttf_on_doc_ready(){

	tt_screen=new ttc_screen({
	  parent:false,
	  domID:'tt_screen'
	});

	
	var tst=tt_screen.create(null,'obj');

	if(tst){
	  var id=tst.id;
	  tst.ctx.beginPath(); tst.ctx.moveTo(0,0); tst.ctx.lineTo(100,100); tst.ctx.stroke();
	  tt_screen.show(id);
	}else{
	  alert(tt_screen.errors());
	}
	
	var tst=tt_screen.create(null,'obj');
	
	if(tst){
	  var id=tst.id;
	  tst.ctx.beginPath(); tst.ctx.moveTo(100,100); tst.ctx.lineTo(200,100); tst.ctx.stroke();
	}else{
	  alert(tt_screen.errors());
	}
	

	var tst=tt_screen.create(null,'obj');

	if(tst){
	  var id=tst.id;
	  tst.ctx.beginPath(); tst.ctx.moveTo(50,100); tst.ctx.lineTo(250,400); tst.ctx.stroke();
	}else{
	  alert(tt_screen.errors());
	}

	console.log(tt_screen.canvas);
	
	//tt_screen.remove(0);
	console.log(tt_screen.canvas);
	
	var id=0;
	setInterval(function(){
	  tt_screen.hideAll();
	  tt_screen.show(id);
	  id++; if(id==tt_screen.canvas.length) id=0;
	},100);
}
